package com.srit.vgt.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "market")
@Getter
@Setter
public class Market {
    @Id
    private String marketId;

    @Column(length = 20)
    private String marketName;

    @Column(length = 80)
    private String address;

    @Column
    //经度
    private Double longitude;
    @Column
    //纬度
    private Double latitude;

    @Column
    private Integer busiNum;

    @Column(length = 6)
    private String districtId;

    @Column(length = 4)
    private String cityId;
}
